<?php
namespace app\business\controller;
use app\business\model\BusinessLessen;
use app\business\model\BusinessLogin;
use think\Db;
use think\Session;

class Subscribe extends Base
{
    public function index()
    {
        $username = Session::get('username');

        $count = BusinessLogin::where('username',$username)->find();

        $num=$count['business_id']; //商户id

        $data = Db::table('business_subscribe')->where('shop_id',$num)->select();

        $this->assign('data',$data);

        return $this->fetch();
    }
}